<template>
  <div class="home-container">
    <div class="home-title">欢迎使用自助终端收费系统</div>
    <div class="input-group">
      <el-input readonly></el-input>
      <p class="input-alert">请输入身份证号码</p>
    </div>
    <div class="function-content">
      <div class="function-group">
        <div class="function-box" v-for="item in list" :key="item">
          <div class="function-item">{{item}}</div>
        </div>
      </div>
      <div class="button-group">
        <el-button type="danger">删除</el-button>
        <el-button type="primary">确定</el-button>
      </div>
    </div>
    <div class="scroll-left">
      <!-- <div class="scroll-text">滚动文字</div> -->
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      list:[1,2,3,4,5,6,7,8,9,'X',0,'.']
    };
  },
  created() {

  },
  methods: {

  }
};
</script>
<style lang="less">
.home-container {
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, #cbe5f5, #deedf6);
  .home-title {
    padding: 20 * @hv;
    font-size: 38 * @hv;
    font-weight: bold;
    color: #444;
    text-align: center;
  }
  .input-group {
    padding: 15 * @hv 20%;
  }
  .function-content{
    width: 450*@hv;
    margin:0 auto;
  }
  .function-group {
    display: flex;
    flex-wrap: wrap;
  }
  .function-box {
    padding: 15 * @hv;
  }
  .function-item {
    display: flex;
    width: 320 * @hw;
    height: 120 * @hv;
    border-radius: 10px;
    box-shadow: 1px 1px 4px -2px #888;
    background: #fff;
    align-items: center;
    justify-content: center;
    font-size: 50 * @hv;
    font-weight: bold;
    color: #000;
    &:active{
      background: #eee;
    }
  }
  .button-group{
    padding:15* @hv;
    display: flex;
    justify-content: space-between;
  }
  .scroll-left {
    padding: 5% 15% 0 15%;
  }
  .scroll-text {
    font-size: 30 * @hv;
    color: #c02014;
  }
  .input-alert{
    padding:4px;
    font-size: 32*@hv;
    color:red;
  }
}
</style>